import request from '@/utils/request'
const service = window.lwConfig.services.system + window.lwConfig.services.wecom

/**
 * 获取重复客户列表
 * @param {*} params
{
    "pageNum": "当前页",
    "pageSize": "每页显示条数",
}
 */
export function getList(params) {
  return request({
    url: service + '/customer/findRepeatableCustomerList',
    method: 'GET',
    params,
  })
}

/**
 * 根据客户ID获取所有数据
 * @param {*} id
 */
export function getCustomerList(params) {
  return request({
    url: service + '/customer/findRepeatableCustomer',
    method: 'GET',
    params,
  })
}

/**
 * 重复客户分配
 * @param {*} data
 */
export function uploadObj(data) {
  return request({
    url: service + '/customer/dealRepeatableCustomer',
    method: 'POST',
    data,
  })
}